package com.powergisol.gis.dao;


import com.powergisol.gis.entity.TabPipe;
import com.powergisol.gis.vo.PipeDetailsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TabPipeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TabPipe record);

    int insertSelective(TabPipe record);

    TabPipe selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TabPipe record);

    int updateByPrimaryKey(TabPipe record);

    int saveBatch(List<TabPipe> tabPipeList);

    List<String> getClassBySetId(Integer settingId);

    List<TabPipe> selectAll(@Param("settingId") Integer settingId,@Param("wgTypes") List<String> wgTypes);

    List<TabPipe> selectDetails(@Param("pipeDetailsVO") PipeDetailsVO pipeDetailsVO);

    List<String> getAllClass(@Param("settingId") Integer settingId);

    List<String> getMaterialClass(int id);
}